<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    

</body>
</html>
<script>
    // <!-- 1. 敏感词过滤
    // - 敏感词库自己设定 -->
    var str = "你仿佛有个大病"
    var res = str.replace("有个大病" ,"*")
    console.log(res)

</script>